package com.init.iblog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.init.iblog.domain.ResponseResult;
import com.init.iblog.domain.entity.Comment;


/**
 * (Comment)表服务接口
 *
 * @author makejava
 * @since 2023-02-23 19:35:40
 */
public interface CommentService extends IService<Comment> {

    /**
     * 分页查询评论
     * @param commentType   标识该评论是文章评论还是友链评论
     * @param blogId
     * @param pageNum
     * @param pageSize
     * @return
     */
    ResponseResult commentList(String commentType,Long blogId, Integer pageNum, Integer pageSize);

    /**
     * 添加评论
     * @param comment
     * @return
     */
    ResponseResult addComment(Comment comment);
}

